//
// Created by wze-zero on 2024/8/1 001.
//
#include <iostream>

using namespace std;

int main() {
    char c;
    cin >> c;
    for (int i = 1; i <= 3; ++i) {
        for (int j = 1; j <= (3 - i); ++j) {
            cout << " ";
        }
        for (int j = 1; j <= (2 * i - 1); ++j) {
            cout << c;
        }
        cout << endl;
    }
    for (int i = 1; i <= 2; ++i) {
        for (int j = 1; j <= i; ++j) {
            cout << " ";
        }
        for (int j = 1; j <= 4 - (2 * i - 1); ++j) {
            cout << c;
        }
        cout << endl;
    }
}